package com.itgt.train;

import java.util.Arrays;

public class TianGanDiZhi {

	public static void main(String[] args) {

		char[] heavenlyStems = { '甲', '乙', '丙', '丁', '戊', '己', '庚', '辛', '壬', '癸' };

		char[] earthlyBranches = { '子', '丑', '寅', '卯', '辰', '巳', '午', '未', '申', '酉', '戌', '亥' };

		for( int i = 0 ; i < 60 ; i++ ) {
			int x = i % heavenlyStems.length ; 
			int y = i % earthlyBranches.length ;
			System.out.print( heavenlyStems[ x ] );
			System.out.print( earthlyBranches[ y ] + "\t");
			if( y == 11 ) {
				System.out.println();
			}
//			String[] ch = new String[] { heavenlyStems[ x ]+""+ earthlyBranches[ y ] };
//			System.out.print(Arrays.toString(ch)+"\t");
		}

	}
}
